package com.app.micaihu.bean.infor;


import android.text.TextUtils;

/**
 * Created by Guo on 2016/7/13.
 * <p>
 * 用户信息类
 */

public class UserInfor extends GetTaskBean {
    //个人相关

    private String uid;//用户Id
    private String nickName;// 昵称
    private String mobile;//用户手机
    private String password;//用户密码
    private String headPic;// 用户头像
    private String contribution;// 军种
    private String militaryTime;// 参军时间
    private String jiamiphone;// 加密手机号
    private String isFirstLogin;//是否是新用户 0老用户 1新用户

    private String openId;//第三方id
    private String token;//个人标示
    private String militaryType;//军种
    private String military_h5;//选择军种H5

    //任务相关
    private UserTask task;//任务类

    //状态相关
    private String loginType;//登录类型qq/weixin/手机:1

    private String signature;//签名

    private String tansImg;//是否能发图

    private BoundStatus boundStatus;

    public BoundStatus getBoundStatus() {
        return boundStatus;
    }

    public void setBoundStatus(BoundStatus boundStatus) {
        this.boundStatus = boundStatus;
    }

    public static class BoundStatus {
        private String wechat;//
        private String qq;//
        private String weibo;//

        public String getWechat() {
            return wechat;
        }

        public void setWechat(String wechat) {
            this.wechat = wechat;
        }

        public String getQq() {
            return qq;
        }

        public void setQq(String qq) {
            this.qq = qq;
        }

        public String getWeibo() {
            return weibo;
        }

        public void setWeibo(String weibo) {
            this.weibo = weibo;
        }
    }

    public String getMilitaryType() {
        return militaryType;
    }

    public void setMilitaryType(String militaryType) {
        this.militaryType = militaryType;
    }

    public String getMilitary_h5() {
        return military_h5;
    }

    public void setMilitary_h5(String military_h5) {
        this.military_h5 = military_h5;
    }

    public String getTansImg() {
        return tansImg;
    }

    public void setTansImg(String tansImg) {
        this.tansImg = tansImg;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getUid() {
        return TextUtils.isEmpty(uid) ? "0" : uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNickName() {
        return nickName == null ? "" : nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile == null || "0".equals(mobile) ? "" : mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeadPic() {
        return headPic;
    }

//    public boolean getIsNewUser() {
//        if (TextUtils.equals(getIsFirstLogin(), "1")) {
//            return true;
//        }
//        return false;
//    }

    public String getIsFirstLogin() {
        return isFirstLogin;
    }

    public void setIsFirstLogin(String isFirstLogin) {
        this.isFirstLogin = isFirstLogin;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getContribution() {
        return contribution;
    }

    public void setContribution(String contribution) {
        this.contribution = contribution;
    }

    public String getMilitaryTime() {
        return militaryTime;
    }

    public void setMilitaryTime(String militaryTime) {
        this.militaryTime = militaryTime;
    }

    public String getJiamiphone() {
        return jiamiphone == null ? "" : jiamiphone;
    }

    public void setJiamiphone(String jiamiphone) {
        this.jiamiphone = jiamiphone;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public UserTask getTask() {
        return task;
    }

    public void setTask(UserTask task) {
        this.task = task;
    }

   /* public boolean getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(boolean isLogin) {
        this.isLogin = isLogin;
    }
*/
   /* public String getIsSignIn() {
        return isSignIn;
    }

    public void setIsSignIn(String isSignIn) {
        this.isSignIn = isSignIn;
    }
*/

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
}
